import TreeTransfer from "../packages/tree-transfer";

// 存储组件列表
const components = [TreeTransfer];

const install = function(Vue) {
  if (install.installed) return;
  components.forEach((component) => {
    Vue.component(component.name, component);
  });
};

if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
}

export default {
  install,
  components,
  TreeTransfer,
};

export { TreeTransfer };
